package com;

import java.io.IOException;
import java.util.Date;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.HeaderFooter;
import com.lowagie.text.Paragraph;
import com.lowagie.text.Phrase;
import com.lowagie.text.Watermark;
import com.lowagie.text.pdf.PdfWriter;
import com.lowagie.tools.handout_pdf;

public class FleshNews extends HttpServlet {
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {

		doPost(request, response);

	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		response.setContentType("application/pdf");
		try {
		Document document = new Document();
		PdfWriter.getInstance(document, response.getOutputStream());
		document.open();
		document.add(new Paragraph("\t  Addmission Open in CCC, O Level & A Level.\n----------------------------------------------------------------\n\n\n"));
		document.add(new Paragraph(" theory examination for each module under the fourth revised syllabus would be for duration of three hours and the total marks for each subject would be 100. One Practical examination of three hours durationand 100 marks each have been introduced, wherein assessment of writtenand presentation skills will form an integralpart. The first examination with the revised syllabus will be held inJuly 2010, for which teaching will commence with immediate effect. Dates for the various activities connected with examinations will beannounced on  DOEACC website, well in advance of the examinations.Laboratory & Practical work will be conducted at Institutions/ organizations, which are running the course. The Society will beresponsible for holding the examination for theory and practical bothfor the students from Accredited Centers and student at large.\n\n\n\n"));
		document.add(new Paragraph("Hirel Info Genesis"));
		document.add(new Paragraph(new Date().toString()));
		document.close();
		} catch (DocumentException de) {
		throw new IOException(de.getMessage());
		}
	}
}
